package com.ad_hccm.service.impl.TreatmentHistory;

import com.ad_hccm.dao.TreatmentHistory.SystemMedicineDao;
import com.ad_hccm.domain.TreatmentHistory.SystemMedicine;
import com.ad_hccm.service.TreatmentHistory.SystemMedicineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 系统药物ServiceImpl
 */
@Service
public class SystemMedicineServiceImpl implements SystemMedicineService {
    @Autowired
    private SystemMedicineDao systemMedicineDao;

    @Override
    public boolean save(SystemMedicine systemMedicine) {
        return systemMedicineDao.save(systemMedicine);
    }

    @Override
    public boolean update(SystemMedicine systemMedicine) {
        return systemMedicineDao.update(systemMedicine);
    }

    @Override
    public SystemMedicine getById(String id) {
        return systemMedicineDao.getById(id);
    }

    @Override
    public List<SystemMedicine> getAll() {
        return systemMedicineDao.getAll();
    }
}
